Conversation
Introduce a new scripts.snapshot_test command that can create reduced registry/channel snapshots and compare them with a line-based diff. The default mode performs the standard workflow: create/overwrite snapshot.yml when no base exists, otherwise write a timestamped snapshot (.yml) and compare it against the base. The implementation captures stdout/stderr from generate_registry, crawl, and generate_channel into a snapshot.log file inside the temp directory. It keeps the temp directory on failure for inspection, and removes it on success. Also add snapshot.toml with a selected package set.
* Allow dismissing "releases" completely => allow all builds and set tags:true * Omitting "tags" and "branch" and "asset" => set tags: true
Add version-constraint support for tag-based release resolution by using
normalize_version_spec and SpecifierSet when a version constraint is
present. For unconstrained tags, keep the legacy strict semver parsing
path.
If the user uses version constraints, maybe synthesize an automatic
open-ended tags release. This is so that the user only has to configure
frozen, left-behind version/st_build pairs while keeping the standard
newest tag for newest build semantic.
E.g.
```
"releases": [
{
"sublime_text": "<4000",
"version": "2.5.*"
}
],
```
In the example, the package defines an old version for older sublime
builds. Here we would add an open-ended release definition, e.g.
```
{
"sublime_text": ">=4000",
"tags": true
}
```
Move normalize_version_spec into normalize_release_entry for dynamic
release definitions, so constraints are canonicalized once during the
normalize phase.
This allows to treat "*" as non-constraining ("") as per docs.
When deciding whether to synthesize an automatic open-ended tags release, handle version="*" the same as an empty/missing version constraint. This avoids generating a synthetic >max release from definitions that are not actually version-constrained before normalization runs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.